package com.satoken.controller;

import cn.dev33.satoken.basic.SaBasicUtil;
import cn.dev33.satoken.util.SaResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserSaBasicConrtroller {

    @RequestMapping("/SaBasicCheck")
    public SaResult SaBasicCheck(String username, String password) {
        SaBasicUtil.check("zhangsan:123456");
        return SaResult.ok("SaBasicCheck登录成功");
    }
}
